A critique of cyclomatic complexity as a software metric
نویسنده
چکیده
McCabe’s cyclomatic complexity metric is widely cited a s a useful predictor of various software attributes such a s reliability and development effort. This critique demonstrates that it is based upon poor theoretical foundations and an inadequate model of software development. The argument that the metric provides the developer with a useful engineering approximation is not borne out by the empirical evidence. Furthermore, it would appear that for a large class of software it is no more than a proxy for, and in many cases is outperformed by, lines of code.
منابع مشابه
A critique of three metrics
This article examines the metrics of the software science model, cyclomatic complexity, and an information flow metric of Henry and Kafura. These were selected on the basis of their popularity within the software engineering literature and the significance of the claims made by their progenitors. Claimed benefits are summarized. Each metric is then subjected to an in-depth critique. All are fou...
متن کاملA measure of program nesting complexity
For more than a decade, metrics of software complexity has been an intriguing topic for discussion. Many metrics have been proposed. Among them, the cyclomatic complexity metric is the easiest to understand and compute. In this paper, the cyclomatic complexity metric and its extensions are reviewed. The strengths and weaknesses of the cyclomatic metric are identified. One of the major weaknesse...
متن کاملCyclomatic Complexity Metrics Revisited: an Empirical Study of Software Development and Maintenance Comments Were Received from Bill Curtis on an Earlier Draft
While the need for software metrics to aid in the assessment of software complexity for both development and maintenance has been widely argued, little agreement has been reached on the appropriateness and value of any single metric. McCabe's cyclomatic complexity metric, a measure of the maximum number of linearly independent circuits in a program control graph has been widely used in research...
متن کاملOn the Improvement of Cyclomatic Complexity Metric
Complexity is always considered as an undesired property in software since it is a fundamental reason of decreasing software quality. Measuring the complexity using some metrics is one of the important factors that were made by many research activities in order to avoid complex software. In this paper, we analyze the effectiveness of complexity in security, maintainability and errors prediction...
متن کاملThe Correlation among Software Complexity Metrics with Case Study
People demand for software quality is growing increasingly, thus different scales for the software are growing fast to handle the quality of software. The software complexity metric is one of the measurements that use some of the internal attributes or characteristics of software to know how they effect on the software quality. In this paper, we cover some of more efficient software complexity ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Software Engineering Journal
دوره 3 شماره
صفحات -
تاریخ انتشار 1988